Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fertility level warning config #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Lepidopteron
Copy link

No description provided.

@t314919
Copy link

t314919 commented May 9, 2022

can this be committed into the main branch?

Copy link
Owner

@honkmaster honkmaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, apart the battery changes.

@@ -119,12 +133,17 @@ function MiFlowerCarePlugin(log, config) {

if (that.humidityAlert) {
that.humidityAlertService.getCharacteristic(Characteristic.StatusLowBattery)
.updateValue(data.batteryLevel <= that.lowBatteryWarningLevel ? Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW : Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL);
.updateValue(data.moisture <= that.humidityAlertLevel ? Characteristic.StatusLowBattery.BATTERY_LEVEL_LOW : Characteristic.StatusLowBattery.BATTERY_LEVEL_NORMAL);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines are for the low battery status of the humidityAlertService. Here, moisture should not be used. The previous behavior was correct. The same applies to the other changes made.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants